import { Log_Enum } from "@enum/app.enum";
import { Ipc_ChannelEnum } from "@enum/channel.enum";
import { IpcRender } from "@preload/helper/ipcRender";

export function writeLogs(...vals: [Log_Enum, any[]]) {
  return IpcRender.invoke<typeof vals, boolean>(
    Ipc_ChannelEnum.APP_WRITE_LOGS,
    ...vals
  );
}
